import request from '@/utils/request'

// 查询用户核酸时间表列表
export function listResidentmission(query) {
  return request({
    url: '/nuclein/residentmission/list',
    method: 'get',
    params: query
  })
}

// 查询用户核酸时间表详细
export function getResidentmission(id) {
  return request({
    url: '/nuclein/residentmission/' + id,
    method: 'get'
  })
}

// 新增用户核酸时间表
export function addResidentmission(data) {
  return request({
    url: '/nuclein/residentmission',
    method: 'post',
    data: data
  })
}

// 修改用户核酸时间表
export function updateResidentmission(data) {
  return request({
    url: '/nuclein/residentmission',
    method: 'put',
    data: data
  })
}

// 删除用户核酸时间表
export function delResidentmission(id) {
  return request({
    url: '/nuclein/residentmission/' + id,
    method: 'delete'
  })
}

// 用户完成核酸检测
export function successMission(residentId) {
  return request({
    url: '/nuclein/residentmission/successMission/' + residentId,
    method: 'get'
  })
}
